package org.soarsky.wealthchengdu.util;

import org.soarsky.wealthchengdu.language.LanguageUtil;
import org.soarsky.wealthchengdu.language.Language_Cn;
import org.soarsky.wealthchengdu.language.Language_En;


/** 
 * 
 * @author MaPuQi
 * @version 2012-8-15 下午12:10:33
 */
public class Config{
//	public static AsyncImageLoader asyncImageLoader3 = new AsyncImageLoader();
	
//	public static boolean erro=true;//登录成功标识符
	public static boolean down=false;//下载新版本标识符
	/**
	 * webservice 服务器
	 */
//	public static String webhost = "http://192.168.1.5:8080/appstore/";//j2ee
//	public static String webhost = "http://218.16.120.167:8181/appstore";//j2ee 深圳
//	public static String webhost = "http://store.guosen.com.cn/appstore";//j2ee 域名
//	public static String webhost = "http://182.151.230.30:8089/api/";//.net
	public static String webhost = "http://192.168.1.5:9080/appstore/";//j2ee 成都
//	public static String webhost = "http://192.168.1.111:8080/guoxin/";//j2ee tmp
	
	/**
	 * webservice 服务器下载apk
	 */
//	public static String weburl ="http://182.151.230.30:8089/";//.net
//	public static String weburl ="http://192.168.1.5:8080/gxupload/";//j2ee
//	public static String weburl ="http://218.16.120.167:8181/gxupload/";//j2ee 深圳
//	public static String weburl ="http://store.guosen.com.cn/gxupload/";//j2ee 域名
	public static String weburl = "http://192.168.1.5:9080/gxupload/";//j2ee 成都
//	public static String weburl = "http://192.168.1.111:8080/gxupload/";//j2ee tmp
	/**
	 * webservice 服务器加载图片的地址
	 */
//	public static String webimage ="http://182.151.230.30:8089/";//.net
//	public static String webimage ="http://192.168.1.5:8080/gxupload/";//j2ee
//	public static String webimage ="http://218.16.120.167:8181/gxupload/";//j2ee 深圳
//	public static String webimage ="http://store.guosen.com.cn/gxupload/";//j2ee 域名
	public static String webimage = "http://192.168.1.5:9080/gxupload/";//j2ee;.
//	public static String webimage = "http://192.168.1.111:8080/gxupload/";//j2ee tmp
	/**
	 * webservice 项目目录
	 */
	public static String sdcardtemp ="/data/gsmanagepad/";
	
	/**
	 * webservice 项目图片缓存目录
	 */
	public static String sdcardtemppic ="/data/gsmanagepad/pic/";
//	public static String sdcardtemppic = "/data/data/com.example.zheloader/catch/pic";
	
	/**
	 * webservice 项目安装包缓存目录
	 */
	public static String sdcardtempapk ="/data/gsmanagepad/apk/";
	
	/**
	 * webservice 项目文件缓存目录
	 */
	public static String sdcardtemptmp ="";
	
	/**
	 * 使用网络 1  使用模拟网络0
	 */
	public static String doweb = "";
	


	
	public static int language = 0;
	public static final int LANGUAGE_ZH = 0;
	public static final int LANGUAGE_EN = 1;
	
	public static LanguageUtil languageUtil = new Language_Cn();
	
	public static LanguageUtil changeLanguage(int language){
		Config.language = language;
		LanguageUtil util;
    	switch(Config.language){
    	case Config.LANGUAGE_ZH:
    		util = new Language_Cn();
    		break;
    	case Config.LANGUAGE_EN:
    		util = new Language_En();
    		break;
    	default:
    		util = new Language_En();
    		break;
    	}
    	Config.languageUtil = util;
    	return util;
	}
	
	
}
